<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="./js/vue2.js"></script>
  </head>
  <body>
    <div id="app">
      <p v-show="isshow">你看的到我吗</p>
      <input @click="isshow=!isshow" type="button" value="切换" />
    </div>

    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          isshow: true
        }
      });
    </script>
  </body>
</html>

 